package com.ants.boot.system.dto.sysuser;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * @author 蚂蚁会花呗
 * @date 2022/4/21 10:35
 * 更新密码
 */
@ApiModel(value = "更新密码")
public class UpdatePasswordDto {

    @ApiModelProperty(value = "用户账号")
    @NotBlank(message = "账号不能为空！")
    private String username;

    @ApiModelProperty(value = "旧密码")
    @NotBlank(message = "旧密码不能为空！")
    private String oldPassword;

    @ApiModelProperty(value = "新密码")
    @NotBlank(message = "新密码不能为空！")
    private String newPassword;


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }
}
